package ajaxjs.data.ext;

import ajaxjs.data.entry.Entry;
import ajaxjs.data.service.BaseService;
import ajaxjs.data.service.subObject.Img;

public class LiveService extends BaseService {
	public static String name = "直播";
	public static String id = "live";
	public Entry pojo = new Live();
	
	// 只有 方法 才可以获取当前实例的
	public Entry getPojo(){
		return this.pojo;
	}
	
	@Override
	public String getTableName() {
		return id;
	}
	public BaseService[] subObjects = {
		new Img(){
			@Override
			public String getParentTableName() {
				return id;
			}
		}
	};

	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getId() {
		return id;
	}
}